package com.ckr.springcloud.dao;

import com.ckr.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Shadowckr
 * @create 2022-01-20 23:00
 */

@Mapper
@Repository
public interface DeptDao {
    //添加一个部门
    public boolean addDept(Dept dept);

    //根据id查询部门
    public Dept queryById(Long id);

    //查询所有部门
    public List<Dept> queryAll();
}
